﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UI_RoomDetail : MonoBehaviour {

    public Image mapPreviewImg;
    public Text mapName_txt, mapIntro_txt, mapMaxPlayer;

    public void SetUIData(MapData data)
    {
        if(data == null)
        {
            mapMaxPlayer.text  =  "??人";
            mapName_txt.text = "请选择地图";
            mapIntro_txt.text = "";
        }
        else
        {
            mapMaxPlayer.text = data.maxPlayer + "人";
            mapName_txt.text = data.mapName;
            mapIntro_txt.text = data.Intro;
        }
       
    }
}
